using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_FORCE_FLIGHT_SPEED_CHANGE_DEF : DefinitionBase
    {
        
        public override bool Process()
        {
            long current_position = base.Stream.Position;

            ProcessInternal(current_position);

            return Validate();
        }

        public override bool Process(uint pParentOpcode, uint opcode, long pPosition, long pSize)
        {
            base.SetCustomPositionAndSize(pPosition, pSize);
            ProcessInternal(pPosition);           

            return ValidateMovementOpcode(pParentOpcode.ToString(), pPosition, pSize);
        }

        private void ProcessInternal(long pCurrentPosition)
        {
            base.Stream.Position = pCurrentPosition;

            ulong guid = popGuid();
            UInt32 flags = ReadUInt32();
            float speed = ReadSingle();
        }

    }
}
